home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
filutil
/
shidx10.zip
/
shidx.doc
< prev
next >
Wrap
Text File
|
1994-12-20
|
7KB
|
145 lines
***** Search Index v1.0 by Lonny Jacobson *****
December 20, 1994
Introduction:
Have you ever downloaded the file SIMIBM.LST from a SimTel mirror? While
this index and others like it are useful for finding specific files, a program
like grep doesn't reveal the "directory" line. That's why I wrote this simple
program. Unlike grep, however, my program displays the "directory" line (or the
location of the file).
This program may be freely distributed as freeware because I just don't
have the heart to charge money -- besides, this is my first program to be
released upon the Internet :-)
Please send your comments, suggestions, constructive criticisms to
ljacobso@nyx.cs.du.edu.
-------------------------------------------------------------------------------
Demonstration:
If all of this seems unclear then let me demonstrate:
C:>grep -i multithread \files\dirs\simdos.lst
mtl110je.zip B 148021 930722 DOS multithreading library for Borland C++
Total Program Time: 0:0:2.25
C:>shidx /Wmultithread /I \files\dirs\simdos.lst
Searching in c:\files\dirs\simdos.lst
Directory SimTel/msdos/cpluspls/ C++ programming language-related files
mtl110je.zip B 148021 930722 DOS multithreading library for Borland C++
Total Program Time: 0:0:4.50
As you can see, grep only displays the line that contains "multithread".
My program includes the "Directory" line which contains the location of
mtl110je.zip.
-------------------------------------------------------------------------------
Command Line:
The defaults for this program are setup for SIMIBM.LST. Shidx
automatically reads shidx.dat before doing anything. This file need not be
present.
/C<label> Only search in header: <label>
Program only looks in label containing <label> for
words.
Example:
/Cpascal -- only searches in labels containing pascal
Case-Insensitive
-------------------------------------------------------------------------------
/D<label>,<nnn> Look for header: <label> at column: <nnn>
Labels are defined by <label> beginning at column
<nnn>. Case-insensitive.
Examples:
/DDirectory,1 -- Default for simibm.lst
/D -- Don't use labels (same as grep)
-------------------------------------------------------------------------------
/F<filename> Save output to file: <filename>
Output is redirected to file.
Examples:
/FOutput.txt -- Writes everything to OUTPUT.TXT.
/F -- Writes everything to (default) file
SEARCH.TXT.
-------------------------------------------------------------------------------
/I Case-insensitive search
Performs a case-insensitive search in all files
Example:
/I- -- Negates previously defined sensitivity.
-------------------------------------------------------------------------------
/N<n> Print output to LPT<n>
Output is redirected to printer at LPT<n>. <n> has
a value of 1, 2, or 3.
Examples:
/N3 -- Prints output to LPT3.
/N -- Prints output to (default) LPT1.
-------------------------------------------------------------------------------
/P<nnn> Pause every <nnn> lines of output
Waits for the user to continue searching after <nnn>
lines of output.
Examples:
/P43 -- Pauses output after 43 lines.
/P -- Pauses output after (default) 24 lines.
-------------------------------------------------------------------------------
/S Show current search parameters
Example:
/S -- Displays information at beginning of search.
-------------------------------------------------------------------------------
/W<word>[, & * ?]... List of keywords
Program searches each line of text for keyword(s).
, = or line contains this word
& = and line contains this word
* = and remaining line contains word
? = and remaining line contains unknown character(s)
then word
Example:
/Ws???x&Lo*y,multithread
-------------------------------------------------------------------------------
/X<x1>,<x2> Search between column: <x1> and column: <x2>
Examples:
/X5,75 -- Looks between 5 and 75 for words
/X -- Looks between (default) 1 and 80 for words
-------------------------------------------------------------------------------
/Y Prompts for all values
Example:
/Y -- Program prompts program for all command line
options. Good for beginners.
-------------------------------------------------------------------------------
/Z,0...9<filename> Use variables or file: <filename> for values
Environment variables are usually set in the
AUTOEXEC.BAT
Examples:
SET SHIDXDEF=/DINDEX,1 BORLAND.LST /X1,90
/Z -- Reads values from environment variable SHIDXDEF
/1 -- Reads values from variable SHIDXDEF1
/0shidx.def -- Reads values from file SHIDX.DEF.
Each option occuppies one line:
/DINDEX,1
borland.lst
/X1,90
-------------------------------------------------------------------------------
Please send your comments AND suggestions to ljacobso@nyx.cs.du.edu.
Thank you